package com.bwie.bargain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author ShuangzhiZhao
 * @email 466505908@qq.com
 * @date 2022-03-07 19:58:55
 */
@Data
@TableName("notes")
public class NotesEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 记录id
	 */
	@TableId
	private Long nid;
	/**
	 *  //砍价人id   后续做判断一个用户只能砍一次使用
	 */
	private Long userId;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 砍价活动id
	 */
	private Long bargainId;
	/**
	 * 最终价格
	 */
	private BigDecimal lastPrice;
	/**
	 * 砍价
	 */
	private Integer bargainFlag;
	private Integer bargainCount;

	private Date createDate;
    //被砍价人id
	private Long notesUserId;
}
